package com.wzy.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wzy.db.dao.PersonDao;
import com.wzy.db.model.Person;

@Service
public class PersonService {

	@Autowired
	private PersonDao personDao;
	
	public Person findById(Integer id) {
		
		Person p = personDao.findById(id);
		return p;
	}
	
	public Person FindByName(String name) {
		Person p = personDao.findByName(name);
		return p;
	}
	
}
